package cn.caijiapeng.spt.service;

import com.jfinal.plugin.activerecord.Page;

import cn.caijiapeng.spt.model.FeedBack;

public class FeedBackService {
	public final static FeedBackService srv = new FeedBackService();
	public FeedBack dao = new FeedBack();
	
	
	public boolean save(FeedBack m) {
		return m.save();
	}
	
	public Page<FeedBack> getPage(Integer pageNumber, Integer pageSize){
		return dao.paginate(pageNumber, pageSize, "select *", "from " + dao.getTableName() + " order by id desc");
	}
}
